<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of soa2Logs
 *
 * @author dxx
 */

namespace app\common\model\log;

use think\Model;

class InspectionLog extends Model {

    protected $table = 'jj_inspection_log';
    protected $connection = ['database' => 'jooj_log'];
    
    public function addInspectionLog($data){
        $insertData = [
            'store_id'=>$data['store_id'],
            'distance'=>$data['distance'],
            'major'=>$data['major'],
            'minor'=>$data['minor'],
            'uuid'=>$data['uuid'],
            'xml'=>$data['xml'],
            'open_id'=>$data['open_id'],
            'mp_id'=>$data['mp_id'],
            'ts'=>$data['ts'],
        ];
        
        return $this->insertGetId($insertData);
    }
}
